home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / INITGUID.H < prev    next >
C/C++ Source or Header  |  1993-11-16  |  1KB  |  39 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * initguid.h -    Definitions for controlling GUID initialization                  *
  4. *                                                                             *
  5. *               OLE Version 2.0                                               *
  6. *                                                                             *
  7. *               Copyright (c) 1992-1993, Microsoft Corp. All rights reserved. *
  8. *                                                                             *
  9. \*****************************************************************************/
  10.  
  11. // Include after compobj.h to enable GUID initialization.  This 
  12. //              must be done once per exe/dll.
  13. //
  14. // After this file, include one or more of the GUID definition files.
  15. //
  16. // NOTE: ole2.lib contains references to all GUIDs defined by OLE.
  17.  
  18. #ifndef DEFINE_GUID
  19. #pragma error "initguid: must include compobj.h first."
  20. #endif
  21.  
  22. #undef DEFINE_GUID
  23.  
  24. #ifdef _MAC
  25. #define __based(a)
  26. #endif
  27.  
  28. #ifdef WIN32
  29. #define __based(a)
  30. #endif
  31.  
  32. #ifdef __TURBOC__
  33. #define __based(a)
  34. #endif
  35.  
  36. #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  37.     EXTERN_C const GUID CDECL __based(__segname("_CODE")) name \
  38.                     = { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
  39.